import axios from 'axios'
var Authorization = localStorage.getItem('ad_Authorization')
// var Authorization = 'eyJhbGciOiJIUzUxMiJ9.eyJpc3MiOiJ6aGFvcGluLmhuenpyYyIsInVzZXJOYW1lIjoiaG56enJjIiwiYWNjb3VudFR5cGVFbnVtIjozLCJleHAiOjE2MDQ1NDkxNTcsInVzZXJJZCI6IjEiLCJpYXQiOjE2MDQ0NjI3NTd9.89tWXV6Q2_mE6EcCtiEoyS6phpqXoEUBUxDprbUc2Y5UXVeRXKlpNaDP3v5Si8QFE4Byydp47tGOnJKQ0Rwx6A'
Authorization = 'Bearer ' + Authorization
const UNEMPLOY = {
  // 失业人员列表
  losejobresumeListpage (params) {
    return axios.post(`/zsrencai/api/sys/admin/lose-job-resume/list/page`, params, {
      headers: { "Authorization": Authorization }
    })
  },
  // 失业人员新增
  resumeInsert (params) {
    return axios.post(`/zsrencai/api/sys/admin/lose-job-resume/insert`, params, {
      headers: { "Authorization": Authorization }
    })
  },
  // 失业人员修改
  resumeUpdate (params) {
    return axios.post(`/zsrencai/api/sys/admin/lose-job-resume/update`, params, {
      headers: { "Authorization": Authorization }
    })
  },
  // 失业人员查看
  loseJobDetail (id) {
    return axios.get(`/zsrencai/api/sys/admin/lose-job-resume/get/loseJob/` + id, {
      headers: { "Authorization": Authorization }
    })
  },
  // 失业人员删除
  losejobresumeDelete (id) {
    return axios.get(`/zsrencai/api/sys/admin/lose-job-resume/delete/` + id, {
      headers: { "Authorization": Authorization }
    })
  },
  // 失业人员统计列表
  employmentPistPage (params) {
    return axios.post(`/zsrencai/api/sys/admin/employment-job-resume-statistics/list/page`, params, {
      headers: { "Authorization": Authorization }
    })
  },
  // 失业人员统计新增
  employmentInsert (params) {
    return axios.post(`/zsrencai/api/sys/admin/employment-job-resume-statistics/insert`, params, {
      headers: { "Authorization": Authorization }
    })
  },
  // 失业人员统计修改
  employmentUpdate (params) {
    return axios.put(`/zsrencai/api/sys/admin/employment-job-resume-statistics/update`, params, {
      headers: { "Authorization": Authorization }
    })
  },
  // 失业人员统计删除
  employmentDel (id) {
    return axios.get(`/zsrencai/api/sys/admin/employment-job-resume-statistics/del/` + id, {
      headers: { "Authorization": Authorization }
    })
  },
  // 获取单个失业人员统计
  employmentGetid (id) {
    return axios.get(`/zsrencai/api/sys/admin/employment-job-resume-statistics/get/` + id, {
      headers: { "Authorization": Authorization }
    })
  },
  // 获取省市县
  citytree (id) {
    return axios.get('/zsrencai/api/sys/admin/pr/find/tree/430200', {
      headers: { "Authorization": Authorization }
    })
  },
  //获取行业
  findTradeDict (id) {
    return axios.get('/zsrencai/api/sys/admin/tc/find/tree', {
      headers: { "Authorization": Authorization }
    })
  },
  //获取专业
  mcFindall (id) {
    return axios.get('/zsrencai/api/sys/admin/mc/find/tree', {
      headers: { "Authorization": Authorization }
    })
  },
  //获取学历
  adminDict (id) {
    return axios.get('/zsrencai/api/sys/admin/dict/find/education', {
      headers: { "Authorization": Authorization }
    })
  },

}

export default UNEMPLOY
